package com.design.YiTong.model.virus;

import com.baomidou.mybatisplus.annotation.TableName;
import com.design.YiTong.model.base.BaseMongoEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@ApiModel(description = "Virus")
@Document("virus")
public class VirusInfo extends BaseMongoEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "位置")
    @Indexed(unique = true) //唯一索引
    private String point;

    @ApiModelProperty(value = "毒株类型")
    private String[]category;

    @ApiModelProperty(value = "说明")
    private String note;
}
